﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Transaction.aspx.cs" Inherits="Provider.Transaction" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-box-header">
        <h3>
            Danh sách giao dịch</h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <!-- This is the target div. id must match the href of this div's tab -->
            <div class="notification png_bg message" id="message" runat="server">
                <a href="#" class="close">
                    <img src="Images/Icons/cross_grey_small.png" title="Đóng thông báo" alt="close" /></a>
                <div>
                    <asp:Label ID="lblMessage" runat="server" Text="Label"></asp:Label>
                </div>
            </div>
            <asp:Label ID="Label1" runat="server" Text="Label">Nhà kinh doanh</asp:Label>
            <asp:DropDownList ID="ddlPartner" runat="server" CssClass="small-input" DataTextField="PartnerName"
                DataValueField="PartnerID">
            </asp:DropDownList>
            <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="button" OnClick="btnSearch_Click" />
            <asp:GridView ID="dtgTransaction" runat="server" AutoGenerateColumns="false" DataKeyNames="TransID">
                <AlternatingRowStyle BackColor="Azure" />
                <Columns>
                    <asp:TemplateField HeaderText="" HeaderStyle-Width="20">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" Enabled="true" />
                            <asp:HiddenField ID="hidPartnerID" runat="server" Value='<%#Bind("PartnerID") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Sản phẩm" DataField="ProductName">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Nhà kinh doanh" DataField="PartnerName">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Đơn giá" DataField="ProductPrice">
                        <HeaderStyle Width="80px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="SL tối thiểu cập nhật kho" ItemStyle-HorizontalAlign="Right"
                        DataField="MinQuantity">
                        <HeaderStyle Width="70px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="SL cập nhật" ItemStyle-HorizontalAlign="Right" DataField="NextTransQuantity">
                        <HeaderStyle Width="70px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Ngày bắt đầu" DataField="BeginTransDate" DataFormatString="{0:dd/MM/yyyy}">
                        <HeaderStyle Width="70px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Ngày kết thúc" DataField="EndTransDate" DataFormatString="{0:dd/MM/yyyy}">
                        <HeaderStyle Width="70px"></HeaderStyle>
                    </asp:BoundField>
                </Columns>
            </asp:GridView>
            <asp:Button ID="btnAccept" runat="server" Text="Đồng ý" CssClass="button" OnClick="btnAccept_Click" />
            <asp:Button ID="btnRefuse" runat="server" Text="Từ chối" CssClass="button" OnClick="btnRefuse_Click" />
            <asp:Button ID="btnCheckQuantity" runat="server" Text="Kiểm tra tồn kho" CssClass="button"
                OnClick="btnCheckQuantity_Click" />
        </div>
        <!-- End #tab1 -->
    </div>
    <!-- End .content-box-content -->
</asp:Content>
